package cn.client.data.remoteData.repository

import cn.client.data.remoteData.ApiService
import cn.client.data.remoteData.bean.AvoidancePainBean
import cn.client.data.remoteData.bean.AvoidancePainReq
import cn.client.data.remoteData.bean.BaseResp
import cn.client.data.remoteData.bean.EmotionLogBean
import cn.client.data.remoteData.bean.EmotionLogReq
import cn.client.data.remoteData.bean.PageSelectByUid
import javax.inject.Inject

class EmotionLogRepository  @Inject constructor(private val apiService: ApiService) {

    suspend fun addEmotionLog(req: EmotionLogReq): BaseResp<Any> {
        return apiService.addEmotionLog(req)
    }

    suspend fun selectListEmotionLog(req: PageSelectByUid): BaseResp<List<EmotionLogBean>> {
        return apiService.selectListEmotionLog(req)
    }

    suspend fun selectInfoEmotionLog(id: Int): BaseResp<EmotionLogBean> {
        return apiService.selectInfoEmotionLog(id)
    }

    suspend fun deleteEmotionLog(id: Int): BaseResp<Any> {
        return apiService.deleteEmotionLog(id)
    }

}